package day04;

import java.util.Scanner;

public class IfDemo01 {
    public static void main(String[] args) {
        System.out.println("程序开始执行");
        int a=5;
        int b=8;
        if(a<b){
           //语句块
            System.out.println("a>b");
        }
        System.out.println("程序执行结束");

        // 判断一个数是不是偶数
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入你要算的数字");
        int c=sc.nextInt();
        if(c%2==0){
            System.out.println(c+"是偶数");
        }
        if(!(c%2==0)){
            System.out.println(c+"是奇数");
        }

    }
}
